package cmd

import (
	"fmt"
	"time"
)

type DemoServe struct {
}

func (d *DemoServe) Name() string {
	return "demo_daemon"
}
func (d *DemoServe) Start() {
	fmt.Println("start")
	for {
		fmt.Println("running...")
		time.Sleep(5 * time.Second)
	}
}
func (d *DemoServe) Stop() error {
	fmt.Println("stop")
	return nil
}
func (d *DemoServe) Restart() error {
	fmt.Println("restart")
	return nil
}
